package com.it.text;

import java.util.Scanner;

public class StringText03 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        System.out.println("请输入你的手机号:");
        String phone =  sc.nextLine();
        String phoneHead = phone.substring(0,3);
        String phoneEnd = phone.substring(7);
        System.out.println("电话号码:" + phoneHead + "****" + phoneEnd);


    }

}
